#pragma once

#include"Engine.h"

class Texture{
private:
	LPDIRECT3DTEXTURE9 texture;
	D3DXIMAGE_INFO info;
public:
	Texture(void);
	virtual ~Texture(void);
	
	bool load(std::string filename, D3DCOLOR transcolor = D3DCOLOR_XRGB(255, 0, 255));
	void release();
	
	int getWidth(){ return info.Width; }
	int getHeight(){ return info.Height; }
	LPDIRECT3DTEXTURE9 getTexture(){ return texture;}
};